var OrderManager = {
  
	askForAllOrders:function(){
		var href = "orderManager.do?method=getAllEffectOrders";
		ajaxRequest(href, this.loadAllOrders, null);
	},
	
	loadAllOrders:function(ajax_request){
		var data = eval("(" + ajax_request.responseText + ")");
		for(var i=0;i<data.orders.length;i++) {
			var orderItem = {
					userId:data.orders[i].userId,
					movieName:data.orders[i].movieName,
					sessionDate:data.orders[i].sessionDate,
					orderPrice:data.orders[i].orderPrice,
					orderQuantity:data.orders[i].orderQuantity,
					seatNos:data.orders[i].seatNos,
					deleteOrder:data.orders[i].deleteOrder
			};
			orderStore.newItem(orderItem);
		}
		
		dijit.byId("orderGrid").setStore(orderStore);		
	}
	
	
	
	
	
};
